package com.ly.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ly.bean.EasybuyProduct;
import com.ly.bean.EasybuyProductImages;
import com.ly.mapper.EasybuyProductImagesMapper;
import com.ly.mapper.EasybuyProductMapper;
import com.ly.service.ProductImagesService;
import com.ly.service.ProductService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
@author 李岩
@date 2021/12/14-13:52
@describe
*/
@Component
@Service(interfaceClass = ProductImagesService.class)
public class ProductImagesServiceImpl implements ProductImagesService {
    private final Logger logger= LoggerFactory.getLogger(ProductImagesServiceImpl.class);
    private ProductImagesServiceImpl(){
        System.out.println("ProductImagesServiceImpl   商品的service层");
    }
    @Autowired
    private EasybuyProductImagesMapper productImagesMapper;
    /**
     * 根据商品id查询该商品的图片信息
     */
    @Override
    public List<EasybuyProductImages> selectProductImagesByPid(Integer pid) throws Exception {
        return productImagesMapper.selectProductImagesByPid(pid);
    }
}
